#include<stdio.h>
class Point
{
    public:
        void InitP(int xx = 0, int yy = 0){X = xx; Y = yy;}
        void Move(int xoffset, int yoffset){X += xoffset; Y += yoffset;}
        int GetX() const {return X;}
        int GetY() const {return Y;}
    private:
        int X, Y;
};
class Retangle:public Point
{
    public:
        void InitR(int x, int y, int w, int h)
        {
            InitP(x, y);
            W = w;
            H = h;
        }
        int GetH() const {return H;}
        int GetW() const {return W;}
    private:
        float H, W;
};
int main(int argc, char *argv[])
{
    Retangle rect;
    rect.InitR(2, 3, 4, 5);
    rect.Move(10, 11);
    printf("x= %d, y = %d , w = %d, h = %d\n", rect.GetX(), rect.GetY(), rect.GetH(), rect.GetW());
    return 0;
}
